﻿///==========================
///说明：数据列表模板实体对象模型
///作者: 江怀玉
///===========================
using lite;
using System.ComponentModel;
using System;

namespace iSun.Model
{
    [Serializable]
    [lite.Table(Name = "Set_UserListTemplate")]
    [Table("Set_UserListTemplate", "ListId")]
    public class UserListTemplate : BaseEntity
    {
        public UserListTemplate()
        {
            //this.ListId = Guid.NewGuid();
        }


        private System.Guid _ListId;
       
        [Column, PK]
        public System.Guid ListId
        {
            get { return _ListId; }
            set { _ListId = value; }
        }


        private System.String _EntityName;
        [Column]
        public System.String EntityName
        {
            get { return _EntityName; }
            set { _EntityName = value; }
        }

        private System.String _THCaption;
        [Column]
        public System.String THCaption
        {
            get { return _THCaption; }
            set { _THCaption = value; }
        }

        private System.String _Field;
        [Column]
        public System.String Field
        {
            get { return _Field; }
            set { _Field = value; }
        }

        private System.Int32 _Width;
        [Column]
        public System.Int32 Width
        {
            get { return _Width; }
            set { _Width = value; }
        }

        [Column]
        public string DataFormatter
        {
            get;
            set;
        }

        [Column]
        public string IsVisiable
        {
            get;
            set;
        }

        [Column]
        public int iOrder
        {
            get;
            set;
        }

        [Column]
        public string DataEditor
        {
            get;
            set;
        }

        [Column]
        public DateTime AddTime
        {
            get;
            set;
        }

        [Column]
        public Guid AddUser
        {
            get;
            set;
        }

        public static UserListTemplate CreateInstance()
        {
            return new UserListTemplate();
        }
    }
}
